﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using SharedGenomics.Domain;

namespace SharedGenomics.Workbench.Models
{
    public class LineCountOrEmp1ThresholdAnalysisResultsFileReadStrategy : DefaultAnalysisResultsFileReadStrategy
    {
        private const int MIN_LINE_COUNT = 500;
        private const double MIN_EMP1 = 0.001;

        protected override bool ShouldAddAndContinueCore(AnalysisResult result)
        {
            return this.LinesRead < MIN_LINE_COUNT || result.Emp1 <= MIN_EMP1;
        }
    }
}
